package com.example.lin.lifecycle;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

/**
 * Created by Lin on 2017/9/20.
 */

public class LogActivity2 extends Activity{
    private static final String LIFT_TAG = "LogActivity";

    protected void onCreate(Bundle savedInstanceState){
        Log.v(LogActivity.LIFT_TAG, "This is SecondActivity");
        super.onCreate(savedInstanceState);
        setContentView(R.layout.second);
    }

    protected void onDestroy(){
        Log.v(LogActivity.LIFT_TAG, "SecondActivity -->onDestroy");
        super.onDestroy();
    }

    protected void onPause(){
        Log.v(LogActivity.LIFT_TAG, "SecondActivity -->onPause");
        super.onPause();
    }

    protected void onRestart(){
        Log.v(LogActivity.LIFT_TAG, "SecondActivity -->onRestart");
        super.onRestart();
    }

    protected void onResume(){
        Log.v(LogActivity.LIFT_TAG, "SecondActivity -->onResume");
        super.onResume();
    }

    protected void onStart(){
        Log.v(LogActivity.LIFT_TAG, "SecondActivity -->onStart");
        super.onStart();
    }

    protected void onStop(){
        Log.v(LogActivity.LIFT_TAG, "SecondActivity -->onStop");
        super.onStop();
    }
}
